package com.hondee.fuzzyquery.entity;

import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class DBMultilineResultsEntity extends AbstractEntity<Map<String,Object>>{

	private final List<Map<String,Object>> resultList;
	
	public DBMultilineResultsEntity(String entityName,List<Map<String,Object>> resultList,Integer totalCount){
		super(totalCount, entityName);
		this.resultList = resultList;
	}
	
	

	public List<Map<String, Object>> getResultList() {
		return Collections.unmodifiableList(resultList);
	}

	@Override
	public Iterator<Map<String, Object>> iterator() {
		return resultList.iterator();
	}
}
